package com.itheima.homework2;

public abstract class Car {
    private String bread;
    private int price;

    public abstract void run();

    public String getBread() {
        return bread;
    }

    public void setBread(String bread) {
        this.bread = bread;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public Car(String bread, int price) {

        this.bread = bread;
        this.price = price;
    }

    public Car() {

    }
}
